<form style="padding:30px;" class="layui-form seller-alone-form" id="edit_form">

    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>角色名称：</label>
        <div class="layui-input-block">
            <input name="name" id="edit_name" value="{$data.name}" placeholder="请输入角色名称" class="layui-input" type="text">
            {:zlserverToken()}
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>是否默认：</label>
        <div class="layui-input-inline">
            <input type="checkbox" name="is_def" value="1" {if $data.is_def == 1}checked=""{/if} lay-skin="switch" lay-text="是|否">
        </div>
    </div>
</form>
<script>
    layui.use('form', function(){
        layui.form.render();
    });
</script>